import axios from 'axios';
import qs from 'qs';

//let base = 'http://127.0.0.1:8081';${base}
//let head={headers:{"Content-Type":"application/json"}}；
export const requestLogin = params => { return axios.post(`/admin/login`,  params ).then(res => res.data); };
export const requestLogout = params => { return axios.get(`/admin/logout`, { params: params }).then(res => res.data); };